pub fn csv_to_vec(csv: &[u8], with_header: bool) -> Vec<Vec<String>> {
    let mut rdr = csv::ReaderBuilder::new()
        .has_headers(false)
        .from_reader(csv);
    let mut result = vec![];
    for record in rdr.records() {
        if let Ok(mut record) = record {
            let cols = record
                .iter()
                .map(|col| col.to_string())
                .collect::<Vec<String>>();
            result.push(cols);
        }
    }
    result
}
